package com.cssy.yd.logic.service;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.springframework.dao.DataAccessException;
import org.springframework.transaction.annotation.Transactional;

import com.cssy.base.service.IBaseService;
import com.cssy.yd.logic.entity.LogicSoQuoteDO;
import com.cssy.yd.logic.entity.LogicSoQuoteProductDO;
import com.plat.exception.SyBaseException;

public interface ILogicSoQuoteService  extends IBaseService<LogicSoQuoteDO>{
    
	/**
	 * 通过servlet对象存储
	 * @param request
	 * @param curAP
	 * @throws SyBaseException
	 */
	@Transactional
	public void soQuoteSave(HttpServletRequest request,LogicSoQuoteDO curAP)throws SyBaseException;
	
	/**
	 * 根据报价单ID删除报价单的产品
	 * @param quoteId
	 * @throws DataAccessException
	 */
	public void deleteProductsByQuoteId(String quoteId) throws DataAccessException;
	
	/**
	 * 根据报价单ID查询报价单的产品
	 * @param quoteId
	 * @return
	 */
	public List<LogicSoQuoteProductDO> findProductsByQuoteId(String quoteId);
	
	/**
	 * 根据产品编号查询产品历史报价 -- 根据时间倒序
	 * @param clientNo
	 * @param productNo
	 * @return
	 */
	public List<LogicSoQuoteProductDO> findProductValidQuoteByCNoAndPNo(String clientNo,String productNo);
}
